package com.ideaaedi.springcloud.jd.commonspring.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 对返回值进行填充的注解标识
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.1.F
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface FillReturn {
    
    /**
     * 填充项
     */
    Item[] items() default {Item.DICT, Item.FILE_URL};
    
    /**
     * 填充项
     */
    enum Item {
        
        /**
         * 字典
         */
        DICT,
        
        /**
         * 文件url
         */
        FILE_URL,
    }
}